// i.d(t, {
//   Dv: () => l,
//   TE: () => c,
//   o7: () => h,
//   l0: () => d,
//   Bv: () => u
// })

import * as THREE from "three"
const s = -1,
  r = 10,
  o = 5,
  a = -5,
  l =
    (e, t = s) =>
    i =>
      e.distanceToSquared(i.position) * t,
  c =
    (e, t = s) =>
    i =>
      e.distanceTo(i.position) * t,
  h = (e, t, i = r) => {
    const s = new THREE.Vector3()
    return n => s.copy(n.position).sub(e).normalize().dot(t) * i
  },
  d =
    (e, t = s) =>
    i =>
      e.distanceToSquared(i.floorPosition) * t,
  u =
    (e, t = o, i = a) =>
    n =>
      e === n.floorId ? t : i
export default {
  Dv: l,
  TE: c,
  o7: h,
  l0: d,
  Bv: u
}
